package com.zpark.controller;

import com.zpark.entity.patients.HealthReport;
import com.zpark.service.HealthReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/health-reports")
public class HealthReportController {

    @Autowired
    private HealthReportService healthReportService;

    @GetMapping
    public List<HealthReport> getAllHealthReports() {
        return healthReportService.list();
    }
}